class Greeter4 {
  public greet() {
    console.log('h1!');
  }

  sayHello() {
    this.greet()
  }
}

class Hello extends Greeter4 {
  constructor() {
    super()
    this.greet()
  }
}

const g4 = new Greeter4()
g4.greet()
g4.sayHello()

